<a target="_blank" href="http://developers.facebook.com/tools.php?templates">View Registered Templates</a>
<form action="gm/feedtemplates/do/post" method="post">
  <div>simple template</div>
  <textarea name="simple"><?= htmlentities($_REQUEST['simple']) ?></textarea>
  <div>short story template title</div>
  <textarea name="story"><?= htmlentities($_REQUEST['story']) ?></textarea>
  <div>short story template text</div>
  <textarea name="storytext"><?= htmlentities($_REQUEST['storytext']) ?></textarea>
  <div>action link</div>
  <textarea name="alink"><?= htmlentities($_REQUEST['alink']) ?></textarea>
  <div>action link</div>
  <input type="text" name="aurl" value="<?= htmlentities($_REQUEST['aurl']) ?>"/>
  <div><input type="submit"/></div>
</form>
<?
if ($_REQUEST['do'] == 'post')
{
  $id = ($this->user->fb->api_client->feed_registerTemplateBundle(
    array($_REQUEST['simple']),
    array(array('template_title' => $_REQUEST['story'], 'template_body' => $_REQUEST['storytext'])),
    array(array('text' => $_REQUEST['alink'], 'href' => $_REQUEST['aurl']))
    ));
  ?><br/><br/><?
  print_r(
    $this->user->fb->api_client->feed_getRegisteredTemplateBundleByID($id));
  
}
?>